package com.homedo.odin.solution.contract.pc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@ApiModel(description = "用户评论")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class UserCommentAddPcRequestBean {

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    @Min(message = "用户id非法", value = 0)
    private Integer userId;

    @ApiModelProperty("用户账户")
    private String userAccount;

    @ApiModelProperty("用户头像")
    private String userAvatar;

    @ApiModelProperty("栏目编号")
    @NotNull(message = "栏目编号不能为空")
    @Min(message = "栏目编号非法", value = 0)
    private Long columnId;

    @ApiModelProperty("栏目标题")
    @NotNull(message = "栏目标题不能为空")
    @NotEmpty(message = "栏目标题能为空")
    private String columnTitle;

    @ApiModelProperty("评价类型 1：专栏，2：视频,3:方案,4:规范")
    @NotNull(message = "评价类型不能为空")
    @Min(message = "评价类型非法", value = 0)
    private Integer type;

    @ApiModelProperty("是否匿名 0：否 1：是")
    @NotNull(message = "匿名不能为空")
    @Min(message = "匿名非法", value = 0)
    private Integer isAnonym;

    @ApiModelProperty("评价内容")
//	@NotNull(message = "评价内容不能为空")
    @NotEmpty(message = "评价内容不能为空")
    private String content;
}
